package com.sk.bilibili.model.activity;

import com.sk.api.annotations.Autowired;
import com.sk.bilibili.mapper.CoinMapper;
import com.sk.bilibili.model.BaseModel;
import com.sk.bilibili.other.JsonMap;
import com.sk.bilibili.utils.RequestUtils;
import com.sk.bilibili.view.activity.CoinVideoSetActivity;

public class CoinVideoSetModel extends BaseModel<CoinVideoSetActivity> {

    @Autowired
    CoinMapper coinMapper;

    public void loadData(Integer memberId) {
        JsonMap map=new JsonMap();
        map.put("size",2233);//全部获取
        map.put("memberId",memberId);
        RequestUtils.process(coinMapper.getCoinVideo(map),
                coinPage -> view.loadDataSuccess(coinPage.getRecords()));
    }

}